]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Send an activation token for Accelerator(De)Activated
authorSebastian Wick <sebastian.wick@redhat.com>
Tue, 14 Oct 2025 20:36:16 +0000 (22:36 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
This will be useful for the global shortcuts portal implementation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3917>
(cherry picked from commit d0e8dc2b66f324f6d6526c5cd333c19359047a0a)

js/ui/shellDBus.js

index 9b91c7fb400e1a136ad6797c4c62eb7b53b206de..3c6bc3fff20849e19dc3684e3142f1f9f7092bc4 100644 (file)
@@ -286,9 +286,14 @@ export class GnomeShell {
 
         let connection = this._dbusImpl.get_connection();
         let info = this._dbusImpl.get_info();
+
+        const context = global.create_app_launch_context(0, -1);
+        const token = context.get_startup_notify_id(null, []);
+
         let params = {
             'timestamp': GLib.Variant.new('u', timestamp),
             'action-mode': GLib.Variant.new('u', Main.actionMode),
+            'activation-token': GLib.Variant.new('s', token),
         };
 
         let deviceNode = device.get_device_node();